package com.unicom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.unicom.mapper.UserMapper;
import com.unicom.model.User;
import com.unicom.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public List<User> getall() {
		return userMapper.listUser();
	}

	@Override
	public void addUser(User user) {
		userMapper.insertUser(user);
	}

	
}
